<?php 
/* SVN FILE: $Id$ */
/* Ciclo Test cases generated on: 2010-01-17 23:21:40 : 1263792100*/
App::import('Model', 'Ciclo');

class CicloTestCase extends CakeTestCase {
	var $Ciclo = null;
	var $fixtures = array('app.ciclo', 'app.actividade', 'app.aviso');

	function startTest() {
		$this->Ciclo =& ClassRegistry::init('Ciclo');
	}

	function testCicloInstance() {
		$this->assertTrue(is_a($this->Ciclo, 'Ciclo'));
	}

	function testCicloFind() {
		$this->Ciclo->recursive = -1;
		$results = $this->Ciclo->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Ciclo' => array(
			'id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>